﻿namespace DeHeng_Mes.Constant
{

    /// <summary>
    /// 系统常量
    /// </summary>
    class SystemConstant
    {
        #region 线程阻塞常量
        #endregion

        #region 数采文件路径常量
        #endregion

        #region 数采读取天数限制
        #endregion

        #region 数采错误数据保存天数限制
        #endregion

        #region 数据库用户信息
        #endregion

        #region 调用接口Url
        public const string ProduceHourUrl = "http://" + FACTORY_MES_IP + ":" + FACTORY_MES_PORT + "/dh-mes/production/processTask/yieldAnalysis";
        public const string ProduceOperationUrl = "http://" + FACTORY_MES_IP + ":" + FACTORY_MES_PORT + "/dh-mes/production/processTask/processReport";
        public const string AndonUrl = "http://" + FACTORY_MES_IP + ":" + FACTORY_MES_PORT + "/dh-mes/andon/andonCall/autoCall";
        public const string STATION_PUT = "http://" + FACTORY_MES_IP + ":" + FACTORY_MES_PORT + "/CraftReport";
        public const string PART_START_PUT = "http://" + FACTORY_MES_IP + ":" + FACTORY_MES_PORT + "/CraftStart";
        #endregion

        #region DB块常量
        #endregion

        #region 调用工厂Mes接口常量
        public const string FACTORY_MES_IP = "192.168.10.250";
        public const string FACTORY_MES_PORT = "7512";
        public const string FACTORY_MES_USERNAME = "dh-f3-line";
        public const string FACTORY_MES_PASSWORD = "MvqlVf13Wd9qDInTlMgEdO7L2so4S4AutU6eyoN90fMS5fltFRHcqhBEE+1z6frGed+22XcMy//cYm6jjRWtrw==";
        public const string FACTORY_MES_TOKEN_CACHE_KEY = "token";
        public const double FACTORY_MES_TOKEN_CACHE_EXPIRY = 20;
        #endregion
    }
}
